<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
return [

    //模板参数替换
    'view_replace_str'       => array(
        '__CSS__'    => '/static/admin/css',
        '__JS__'     => '/static/admin/js',
        '__IMG__' => '/static/admin/images',
    ),

    // +----------------------------------------------------------------------
    // | 日志设置
    // +----------------------------------------------------------------------

    'log'                    => [
        // 日志记录方式，内置 file socket 支持扩展
        'type'  => 'File',
        // 日志保存目录
        'path'  => RUNTIME_PATH . 'log' . DS . 'admin' . DS,
        // 日志记录级别
        'level' => [],

        'apart_level' => ['error','sql'],
    ],


    // +----------------------------------------------------------------------
    // | Session设置
    // +----------------------------------------------------------------------

    'session'  => [
        // 'type'   => 'redis',
        'host'       => '127.0.0.1',
        'port'       => 6379,
        'prefix' => 'vote_admin_',
        'expire' => 86400,
        'auto_start' => true,
    ],

    //数据库备份目录
    'back_path' => '../sqlback/',

    'nologin_redirect' => '/login/index',
    'nopermission_redirect' => '/405.html'

];
